﻿using System;
using System.Collections.Generic;
using System.Text;
using AspNetCs.Model;

namespace AspNetCs.IDAL
{
    public interface IPartSiteConfig
    {
        /// <summary>
        /// 添加分站的配置
        /// </summary>
        /// <returns></returns>
        int AddSiteConfig(PartSiteConfigModel model);

        /// <summary>
        /// 修改分站的配置
        /// </summary>
        /// <returns></returns>
        int UpdateSiteConfig(PartSiteConfigModel model);

        /// <summary>
        /// 是否存在该分站的配置
        /// </summary>
        /// <param name="province"></param>
        /// <param name="city"></param>
        /// <returns></returns>
        bool IsExistSiteConfig(int province,int city);


        /// <summary>
        /// 是否存在该分站的配置
        /// </summary>
        /// <param name="province"></param>
        /// <param name="city"></param>
        /// <returns></returns>
        PartSiteConfigModel GetModel(int province, int city);
    }
}
